
import 'dart:async';

import 'package:flutter/services.dart';

class FlutterPdaPrint {
  static const MethodChannel _channel =
      const MethodChannel('flutter_pda_print');

  static Future<String> get platformVersion async {
    final String version = await _channel.invokeMethod('getPlatformVersion');
    return version;
  }

  static Future<bool> printContent(String content) async {
    final bool state = await _channel.invokeMethod('print', {'content':content});
    return state;
  }

  static Future<bool> printQR(String content) async {
    final bool state = await _channel.invokeMethod('printQR', {'content':content});
    return state;
  }

  static Future<bool> printImage(String content) async {
    final bool state = await _channel.invokeMethod('printImage', {'content':content});
    return state;
  }
}
